package com.schedule.task.dao;

import com.schedule.task.entity.BookBill;
import com.schedule.task.vo.BillToUserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface BookBillMapper extends Mapper<BookBill> {

    public List<BookBill> findAll();

    public BookBill findById(Integer id);

    public void updateId(BookBill bookBill);

    public void deleteId(Integer id);

    public void insertBookBill(BookBill bookBill);

    public List<BillToUserVo> selectBillWithUser(Integer id);

    /*查找七天后可以给用户打钱的记录*/
    public List<BookBill> searchBill(Integer setTime);

    /*将记录改为已经处理*/
    public void changeStatus(Integer id);

    public void change(@Param("id") Integer id, @Param("currentTime") Integer currentTime);

}